package com.lyc.wanandroid_kotlin.adapter

import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseViewHolder
import com.lyc.wanandroid_kotlin.R
import com.lyc.wanandroid_kotlin.bean.SearchHistoryBean

/**
 * ClassName:com.lyc.wanandroid_kotlin.adapter
 * Description:
 */
class SearchHistoryAdapter :
    BaseQuickAdapter<SearchHistoryBean, BaseViewHolder>(R.layout.item_search_history) {

    init {
        addChildClickViewIds(R.id.iv_clear)
    }

    override fun convert(holder: BaseViewHolder, item: SearchHistoryBean) {

        holder.setText(R.id.tv_search_key, item.key)

    }
}